<h1>Listing ablogs</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Content</th>
      <th>Picture</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @ablogs.each do |ablog| %>
      <tr>
        <td><%= ablog.title %></td>
        <td><%= ablog.content %></td>
        <td><%= image_tag(ablog.picture_url, :width => 600) if ablog.picture.present? %></td>
        <td><%= link_to 'Show', ablog %></td>
        <td><%= link_to 'Edit', edit_ablog_path(ablog) %></td>
        <td><%= link_to 'Destroy', ablog, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Ablog', new_ablog_path %>
